package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.IncomeManage;
import cn.wolfcode.crm.query.IncomeManageQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IncomeManageMapper {
    void insert(IncomeManage entity);

    void deleteByPrimaryKey(Long id);

    IncomeManage selectByPrimaryKey(Long id);

    List<IncomeManage> selectAll();

    void updateByPrimaryKey(IncomeManage entity);

    //审核操作，就只是update状态
    void changState(@Param("auditorId") Long auditorId, @Param("incomeId") Long incomeId);

    Integer query4Count(IncomeManageQueryObject qo);

    List<IncomeManage> query4List(IncomeManageQueryObject qo);
}